
function verif($scope) {
	$scope.password_format = /^\w*$/;
	$scope.veryifcode_format=/^[a-zA-Z0-9]*$/;
	
	$scope.pwdchange=function(){
		$scope.password_diff =$scope.password!=$scope.password2; 
		if($scope.formpwd4.password.$valid){ 
		$scope.matchaccount=($scope.account==$scope.password);
		}
	};
	
	$scope._time = '';
	$scope.newverifycode = function(){
		$scope.random = (new Date()).getTime().toString();
	};
	$scope.msg = ['账号长度为6-16位字符','只能使用6-16位字母和数字','格式错误！！只能由数字或者字母构成','由6~16位字母或数字组成,不区分大小写 ','请填写验证码','请填写邮箱','请填写真实的身份证号码','请填写姓名','请填写密码',
				  '请填写确认密码', '格式错误，请填写真实的身份证号码', '格式错误，请填写正确的邮箱地址', '错误请，填写正确的验证码', '密码长度小于6位', '密码长度大于14位', '格式错误', '前后两次密码不一致!!',
                  '姓名格式错误,只能为中文', '长度不能小于2位', '长度不能大于13位', '该账号已经注册,请重试', '该账号可以注册'

	];
      
/*	 function myalert(msg){
		$scope.account = $browser.cookies()['account'];
        $scope.name =unescape($browser.cookies()['name']);
        $scope.email = $browser.cookies()['email'];
        $scope.idcard = $browser.cookies()['idcard'];
		deleteCookie("name");
		deleteCookie('account');
        deleteCookie('email');
        deleteCookie('idcard');
		deleteCookie('error');
		$scope.showHid=true;
		$scope.alertCon=msg;
	}

	var error = $browser.cookies()['error'];
	if (error && error != "") {
        switch(error){
            case "0000": myalert("验证码不正确"); break;
            case "0001": myalert("注册失败"); break;
        };
       
    };*/

   
}






